<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqlnd-memcache.configuration.html">运行时配置</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.mysqlnd-memcache.html">Mysqlnd_memcache 函数</a></div>
 <div class="up"><a href="book.mysqlnd-memcache.html">mysqlnd_memcache</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mysqlnd-memcache.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>

 <p class="para">
  <em class="emphasis">MySQL Memcache Plugin related</em>
 </p>
 <p class="para">
  <dl>

   
    <dt id="constant.mysqlnd-memcache-default-regexp">
     <strong><code>MYSQLND_MEMCACHE_DEFAULT_REGEXP</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Default regular expression (PCRE style) used for matching <em>SELECT</em>
      statements that will be mapped into a MySQL Memcache Plugin access point, if possible.
     </span>
     <span class="simpara">
      It is also possible to use <span class="function"><a href="function.mysqlnd-memcache-set.html" class="function">mysqlnd_memcache_set()</a></span>, but the default
      approach is using this regular expression for pattern matching.
     </span>
    </dd>

   
  </dl>

 </p>

 <p class="para">
  <em class="emphasis">Assorted</em>
 </p>
 <p class="para">
  The version number of this plugin can be obtained by using
  <strong><code>MYSQLND_MEMCACHE_VERSION</code></strong> or
  <strong><code>MYSQLND_MEMCACHE_VERSION_ID</code></strong>.
  <strong><code>MYSQLND_MEMCACHE_VERSION</code></strong>
  is the string representation of the numerical version number
  <strong><code>MYSQLND_MEMCACHE_VERSION_ID</code></strong>, which is an integer such as 10000.
  Developers can calculate the version number as follows.
 </p>
 <p class="para">
   <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version (part)</th>
      <th>Example</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>Major*10000</td>
      <td>1*10000 = 10000</td>
     </tr>

     <tr>
      <td>Minor*100</td>
      <td>0*100 = 0</td>
     </tr>

     <tr>
      <td>Patch</td>
      <td>0 = 0</td>
     </tr>

     <tr>
      <td>MYSQLND_MEMCACHE_VERSION_ID</td>
      <td>10000</td>
     </tr>

    </tbody>
   
  </table>

 </p>
 <p class="para">
  <dl>

   
    <dt id="constant.mysqlnd-memcache-version">
     <strong><code>MYSQLND_MEMCACHE_VERSION</code></strong>
     (<span class="type"><a href="language.types.string.html" class="type string">string</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Plugin version string, for example, "<span class="quote">1.0.0-alpha</span>".
     </span>
    </dd>

   
   
    <dt id="constant.mysqlnd-memcache-version-id">
     <strong><code>MYSQLND_MEMCACHE_VERSION_ID</code></strong>
     (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
    </dt>

    <dd>

     <span class="simpara">
      Plugin version number, for example, 10000.
     </span>
    </dd>

   
  </dl>

 </p>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysqlnd-memcache.configuration.html">运行时配置</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.mysqlnd-memcache.html">Mysqlnd_memcache 函数</a></div>
 <div class="up"><a href="book.mysqlnd-memcache.html">mysqlnd_memcache</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
